import { defineStore } from "pinia";
import { ref } from "vue";

export const useUserInfo = defineStore(
  "userInfo",
  () => {
    const token = ref("");
    const setToken = (val) => {
      token.value = val;
    };
    return { token, setToken };
  },
  {
    persist: {
      paths: ["token"],
    },
  }
);
